package o;

import android.content.Context;
import com.huawei.appgallery.foundation.card.base.bean.BaseDistCardBean;
import o.ewm.n;

public class djr {
    protected Context ˋ;
    protected e ˏ;
    protected BaseDistCardBean ॱ;

    public interface e {
        void ˋ();

        void ॱ(Context context, BaseDistCardBean baseDistCardBean);
    }

    public void ˊ(e eVar) {
        this.ˏ = eVar;
    }

    public void ॱ(Context context, BaseDistCardBean baseDistCardBean) {
        this.ॱ = baseDistCardBean;
        this.ˋ = context;
        if (!dok.ͺ()) {
            evk.ˋ(context, context.getString(n.ʹˊ), 0).ˋ();
            if (this.ˏ != null) {
                this.ˏ.ˋ();
            }
        } else if (baseDistCardBean.ᐝॱ()) {
            new eci(baseDistCardBean, context, this.ˏ).ˋ();
        } else if (this.ˏ != null) {
            this.ˏ.ॱ(null, this.ॱ);
        }
    }
}
